<head th:fragment="header">
    <!-- 必要的标签 -->
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
    <link rel="stylesheet" th:href="@{/css/home.css}">
    <script src="https://cdn.jsdelivr.net/npm/chart.js"></script>

    <!-- Bootstrap CSS -->
    <link crossorigin="anonymous" integrity="sha512-6KY5s6UI5J7SVYuZB4S/CZMyPylqyyNZco376NM2Z8Sb8OxEdp02e1jkKk/wZxIEmjQ6DRCEBhni+gpr9c4tvA==" href="https://lib.baomitu.com/twitter-bootstrap/5.1.1/css/bootstrap.min.css" rel="stylesheet">
</head>

<nav th:fragment="navbar" class="navbar navbar-expand-lg navbar-dark bg-dark" style="font-size: 25px;">
    <div class="container">
<!--    <button class="navbar-toggler" type="button" data-toggle="collapse" data-target="#navbarTogglerDemo03" aria-controls="navbarTogglerDemo03" aria-expanded="false" aria-label="Toggle navigation">-->
<!--        <span class="navbar-toggler-icon"></span>-->
<!--    </button>-->
    <a class="navbar-brand " th:href="@{/}"><h2>SupermarketMS</h2></a>

    <div class="collapse navbar-collapse" id="navbarTogglerDemo03">
        <ul class="navbar-nav mr-auto mt-2 mt-lg-0">
            <li class="nav-item active">
                <a class="nav-link " th:href="@{/}">主页</a>
            </li>
            <li class="nav-item">
                <a class="nav-link " th:href="@{/kinds}">类别</a>
            </li>
            <li class="nav-item">
                <a class="nav-link "  th:href="@{/commodities}">商品</a>
            </li>
            <li class="nav-item">
                <a class="nav-link " th:href="@{/userAccounts}">员工</a>
            </li>
            <li class="nav-item">
                <a class="nav-link " th:href="@{/heads}">负责人</a>
            </li>
            <li class="nav-item">
                <a class="nav-link " th:href="@{/purchases}">进货单</a>
            </li>
            <li class="nav-item">
                <a class="nav-link " th:href="@{/pDetails}">进货单明细表</a>
            </li>
            <li class="nav-item">
                <a class="nav-link " th:href="@{/sales}">销售单</a>
            </li>
            <li class="nav-item">
                <a class="nav-link " th:href="@{/sDetails}">销售单明细表</a>
            </li>
            <li class="nav-item">
                <a class="nav-link "  th:href="@{/inventories}">库存单</a>
            </li>
            <li class="nav-item" style="float: right">
                <a class="nav-link "  th:href="@{/logout}">退出</a>
            </li>
        </ul>
        <form class="form-inline my-2 my-lg-0">
<!--            <input class="form-control mr-sm-2" type="search" aria-label="Search">-->
<!--            <button class="btn btn-outline-success my-2 my-sm-0" type="submit">Search</button>-->
        </form>
    </div>
    </div>
</nav>

